import request from '@/utils/request'


//获取招生需求列表
export function getlist(token,inp,create_time,page,pagesize){
  return request({
    url: 'video/Enrollmentneeds/select_needs',
    method: 'post',
    params: { token : token, inp : inp,create_time :create_time,page : page,pagesize : pagesize}
  })
}
//更改招生需求对接状态、招生状态

export function detail(token,id,type,status){
  console.log(token,id,type,status);
  return request({
    url: 'video/Enrollmentneeds/update_needs_status',
    method: 'post',
    params: {
      // username:this.username,
       token: token,
       id: id,
       type: type,
       docking_status:type==1 ?  status==0 ? 1 : 0 : '',
       enrollment_status:type==2 ? status==0 ? 1 : 0 : ''
    }
  })
}